package com.team.recruitment_management_system.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 聊天列表
 * @TableName chat_list
 */
@TableName(value ="chat_list")
@Data
public class ChatList implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 职业id
     */
    private Integer jobId;

    /**
     * 简历id
     */
    private Integer resumeId;

    /**
     * 最近消息
     */
    private String recentMessage;

    /**
     * 上次对话时间
     */
    private Date lastTime;

    /**
     * 聊天对象  1招聘者 2 HR
     */
    private Integer recipientObject;

    /**
     * 创建时间
     */
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}